#!/usr/bin/env python3
"""
FastAPI应用启动脚本
"""

import uvicorn
from config import get_settings

def main():
    """启动FastAPI应用"""
    settings = get_settings()
    
    uvicorn.run(
        "main:app",
        host=settings.host,
        port=settings.port,
        reload=settings.debug,
        log_level=settings.log_level.lower(),
        access_log=True,
        use_colors=True
    )

if __name__ == "__main__":
    main()